<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>slots</title>
  <script src="../vue.js"></script>
</head>
<body>
  <div id="root">
    <!-- <child>
      <div slot="div1">
        <div>hello</div>
        <div>world</div>
      </div>
      <div slot="div2">
        <p>!!!</p>
      </div>
      <div>
        <p>{{string}}</p>
      </div>
      <div>
        <h1>headers</h1>
      </div>
    </child> -->

    <!-- <my-header v-slot:s1="{num2}">
      my-header-{{num2}}
    </my-header> -->
    <my-header>
      <template v-slot:default>
        <div>v-slot default</div>
      </template>
      <template #div1>
        <div>
          v-slot div1
        </div>
      </template>
    </my-header>
  </div>
  <script type="module">
    Vue.config.productionTip = false
    import child from './child.js'
    import myheader from './my-header.js'
    var vm = new Vue({
      el: '#root',
      components: {
        child,
        'my-header': myheader
      },
      data: {
        string: 'line 1',
        num: 1
      }
    })
  </script>
</body>
</html>